/*
 *读取env环境变量
 */
const SERVER_ID = process.env.NODE_ENV === "production" ? 0 : 1

/*
 *定义多个服务器账号 及 根据 SERVER_ID 导出当前环境服务器账号
 */
const SERVER_LIST = [
  {
    id: 0,
    name: "A-生产环境",
    domain: "http://louyudp.121.soft1024.com",
    host: "121.40.48.158",
    port: 22,
    username: "root",
    password: "aiyingruan",
    indexpath: "/www/wwwroot/louyudp/",
    assetspath: "/www/wwwroot/louyudp/"
  },
  {
    id: 1,
    name: "B-测试环境",
    domain: "http://louyudp.121.soft1024.com",
    host: "121.40.48.158",
    port: 22,
    username: "root",
    password: "aiyingruan",
    indexpath: "/www/wwwroot/louyudp/",
    assetspath: "/www/wwwroot/louyudp/"
  }
]

module.exports = SERVER_LIST[SERVER_ID]
